<?php

class Application_Form_Empresa extends Zend_Form
{

    public function init()
    {
        $this->setName('Cadastro_empresa');
		
		
		 $id  = new  Zend_Form_Element_Hidden( 'id');
		
		$cnpj = new Zend_Form_Element_Text('cnpj');
		$cnpj->setLabel('Cnpj')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));
    
	
	
		$nome = new Zend_Form_Element_Text('nome');
		$nome->setLabel('Nome')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));
				
	
	
		$contato_financeiro = new Zend_Form_Element_Text('contato_financeiro');
		$contato_financeiro->setLabel('Contato financeiro')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));
				
				
				
		$nome_sponsor = new Zend_Form_Element_Text('nome_sponsor');
		$nome_sponsor->setLabel('Nome sponsor')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));

				
				
		$telefone = new Zend_Form_Element_Text('telefone');
		$telefone->setLabel('Telefone')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
					
					'Description',
					array('label',array('tag'=> 'br'))
					));

				
				
		$email = new Zend_Form_Element_Text('email');
		$email->setLabel('Email')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));
					
				
				
		$submitButton = new Zend_Form_Element_Submit('Submeter');
		
		$submitButton->setLabel('Submeter');
		$submitButton->setAttrib('id','Submeter')
					->setIgnore(true)
					->setDecorators(array(
						'ViewHelper',

						'Description',
						array('HtmlTag',array('tag'=> 'p'))
					));
					
		$this->addElements(array($id,$cnpj,$nome,$contato_financeiro,$nome_sponsor,$telefone,$email,$submitButton));
		
		$this->setAction('/cadastro/empresa')->setMethod('post');		
    }


}

